package com.bawei.module_home.model.api

import com.bawei.library_net.entity.ResponseEntity
import com.bawei.module_home.model.entity.SimpleTypeEntity
import com.bawei.module_home.model.entity.SimpleVideoEntity
import retrofit2.http.GET
import retrofit2.http.Query

/**
 * @Author : yaotianxue
 * @Time : On 2023/6/25 09:12
 * @Description : VideoTypeApi
 */
interface VideoApi {
    /**
     * 获得推荐视频
     */
    @GET("/videosimple/getRecommendSimpleVideo")
    suspend fun getRecommendSimpleVideo(@Query("page") page:Int,@Query("pagesize") pagesize:Int):ResponseEntity<MutableList<SimpleVideoEntity>>
    /**
     * 根据chhaanelid获得视频
     */
    @GET("/videosimple/getSimpleVideoByChannelId")
    suspend fun getSimpleVideoByChannelId(@Query("channelId") channelId:String,@Query("page") page:Int, @Query("pagesize") pagesize:Int):ResponseEntity<MutableList<SimpleVideoEntity>>

}